#!/usr/bin/env python
import os
def etags():
    src = ""
    for root, dirs, files in os.walk("src"):
        for f in files:
            if f.rfind(".cpp") + 4 == len(f):
                src += root + "/" + f + " "
    for root, dirs, files in os.walk("include"):
        for f in files:
            if f.rfind(".h") + 2 == len(f):
                src +=  root + "/" + f + " "
    #print "etags",src
    os.system("etags " + src)


if __name__ == "__main__":
    etags()
